package at.fhooe.tuxgestures.cam.mapper.event;

import java.util.EventObject;

import at.fhooe.tuxgestures.keysimulator.IKeySimulator.State;

public class StateChangeEvent extends EventObject
{
	
	private State state;
	private int movementSpeedLevel = -1;
	

	public StateChangeEvent(Object source, State state)
	{
		super(source);
		this.state = state;
	}
	
	public StateChangeEvent(Object source, State state, int movementSpeedLevel)
	{
		this(source, state);
		this.movementSpeedLevel = movementSpeedLevel;
	}
	
	public State getState()
	{
		return this.state;
	}
	
	public int getMovementSpeedLevel()
	{
		return this.movementSpeedLevel;
	}
	

}
